import functools
#partical能接收三个参数，分别是函数对象，*args，**kw

# 此处就是将参数传递给了**kw
int2 = functools.partial(int,base=2)
print(int2('1000000'))

# 此处就是将参数传递给了*args
max2 = functools.partial(max,100)
ret = max2(1,2,3)
print("max: ",ret)












